*PRQ Replication Do-File 2023

use "PRQ_US_DATA"
use "PRQ_CAN_UK_DATA.dta"

*Summary Statistics
sum num_citations num_positivetr ca_count ca_pos_count ca_vitality_lag sc_vitality_lag split foldedenactingiddistance criminal age age2 if country==1 & age >=1

sum ca_count ca_pos_count ca_vitality_lag sc_vitality_lag split  ideo criminal age age2 if country==2 & age >=1

sum ca_count ca_pos_count ca_vitality_lag sc_vitality_lag split ukide criminal age age2 if country==0 & age >=1


*US Citation Model
nbreg num_citations c.coa_vitality_disandqual_lag1  lagSCVitality c.margin c.foldedenactingiddistance  i.criminal  c.age c.age2 [pweight=weight], vce(cluster panelid) nolog

*Canada Citation Model
nbreg ca_count ca_vitality_lag sc_vitality_lag split ideo criminal age age2 if country==2, cluster(mlcsample) nolog

*UK Citation Model
nbreg ca_count ca_vitdist_lag sc_vitdist_lag split ukide criminal age age2 if country==0, cluster(mlcsample) nolog

*US Positive Treatment Model
nbreg npositive c.coa_vitality_disandqual_lag1  lagSCVitality c.margin c.foldedenactingiddistance  i.criminal  c.age c.age2 [pweight=weight], vce(cluster panelid) nolog

*Canada Positive Treatment Model
nbreg ca_pos_count ca_vitality_lag sc_vitality_lag split  ideo criminal age age2 if country==2, cluster(mlcsample) nolog

*UK Positive Treatment Model
nbreg ca_pos_count ca_vitdist_lag sc_vitdist_lag split ukide  criminal age age2 if country==0, cluster(mlcsample) nolog
